package com.bobgao.my_first_demo.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import lombok.Data;

@Data
@TableName("login_user")
public class UserEntity {

    @JsonSerialize(using = ToStringSerializer.class)
    private Long id;

    private String loginName;

    private String name;

    private String password;

    private String email;

    private String status;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getLoginName() {
        return loginName;
    }

    public void setLoginName(String loginName) {
        this.loginName = loginName;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public String getEmail() {
        return email;
    }

    public void setEmail(String email) {
        this.email = email;
    }

    public String getStatus() {
        return status;
    }

    public void setStatus(String status) {
        this.status = status;
    }


    @Override
    public String toString(){
        return "UserEntity{"+
                "id=" + id +
                ", name= '" + name + '\'' +
                ", loginName=" + loginName +
                ", password=" + password + '\'' +
                ", email=" + email + '\'' +
                ", status=" + status + '\''+
                '}';
    }
}
